package com.HttpSession;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.TreeMap;
import java.util.TreeSet;

public class aa {
    public static void main(String[] args) {
        int[] a = {1,5,2,4,3,5,2,6,7,6,8,6,5,3,9,4,2,0};
        TreeSet<Integer> ts = new TreeSet<>();
        for (int i : a) {
            ts.add(i);
        }
        for (Integer t : ts) {
            System.out.print(t + ",");
        }

    }
}
